from typing import Optional, List
from app.model import BaseModel
from app.model import PhotoStandardConfig, PhotoStandardWarning


class Photo(BaseModel):
  base64: str
  config: Optional[PhotoStandardConfig] = PhotoStandardConfig()

class PhotoResponse(BaseModel):
  config: PhotoStandardConfig
  base64: str           # 标准化图
  base64_unscaled: str  # 未压缩图
  base64_mark: str      # 标注图
  warnning: List[PhotoStandardWarning]

class PhotoSimpleResponse(BaseModel):
  base64: str           # 标准化图
  warnning: List[PhotoStandardWarning]
